package nc.ui.arap.model;

import java.util.Comparator;

import nc.vo.pub.BusinessException;

public interface BatchTabelModel<T> {
	
	T getSelectData();
	
	T[] getData();
	
	void init() throws BusinessException;
	
	T[] save() throws BusinessException;
	
	void insert() throws BusinessException;
	
	void delete(int[] indexs) throws BusinessException;
	
	void sort(Comparator<T> comparator);
	
	void setSelectedIndex(int selectedIndex);
	
	void addChangeListener(ModelChangeListener changeListener);
	

}
